﻿@using XStudio.XCRF.Web.Models.LabCheck
@model LabCheckWithStd
<table>
    <tr>
        <th>谷丙转氨酶（ALT）</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.ALT < Model.labCheckStd.ALTmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.ALT)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.ALT > Model.labCheckStd.ALTmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.ALT)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.ALT)</td>
            }
        }
        <td>U/L</td>
    </tr>
    <tr>
        <th>谷草转氨酶（AST）</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.AST < Model.labCheckStd.ASTmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.AST)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.AST > Model.labCheckStd.ASTmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.AST)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.AST)</td>
            }
        }
        <td>U/L</td>
    </tr>
    <tr>
        <th>尿素氮（BUN）</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.BUN < Model.labCheckStd.BUNmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.BUN)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.BUN > Model.labCheckStd.BUNmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.BUN)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.BUN)</td>
            }
        }
        <td>mmol/L</td>
    </tr>
    <tr>
        <th>肌酐（SCr）</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.SCr < Model.labCheckStd.SCrmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.SCr)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.SCr > Model.labCheckStd.SCrmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.SCr)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.SCr)</td>
            }
        }
        <td>μmol/L</td>
    </tr>
    <tr>
        <th>总胆红素（ZDHS）</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.ZDHS < Model.labCheckStd.ZDHSmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.ZDHS)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.ZDHS > Model.labCheckStd.ZDHSmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.ZDHS)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.ZDHS)</td>
            }
        }
        <td>μmol/L</td>
    </tr>
    <tr>
        <th>结合胆红素(JHDHS)</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.JHDHS < Model.labCheckStd.JHDHSmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.JHDHS)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.JHDHS > Model.labCheckStd.JHDHSmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.JHDHS)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.JHDHS)</td>
            }
        }
        <td>μmol/L</td>
    </tr>
    <tr>
        <th>白蛋白(BDB)</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.BDB < Model.labCheckStd.BDBmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.BDB)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.BDB > Model.labCheckStd.BDBmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.BDB)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.BDB)</td>
            }
        }
        <td>g/L</td>
    </tr>
    <tr>
        <th>碱性磷酸酶(JXLSM)</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.JXLSM < Model.labCheckStd.JXLSMmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.JXLSM)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.JXLSM > Model.labCheckStd.JXLSMmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.JXLSM)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.JXLSM)</td>
            }
        }
        <td>u/L</td>
    </tr>
    <tr>
        <th>谷氨酰转肽酶(GAXZTM)</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.GAXZTM < Model.labCheckStd.GAXZTMmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.GAXZTM)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.GAXZTM > Model.labCheckStd.GAXZTMmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.GAXZTM)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.GAXZTM)</td>
            }
        }
        <td>u/L</td>
    </tr>
    <tr>
        <th>总胆固醇(ZDGC)</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.ZDGC < Model.labCheckStd.ZDGCmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.ZDGC)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.ZDGC > Model.labCheckStd.ZDGCmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.ZDGC)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.ZDGC)</td>
            }
        }
        <td>mmol/L</td>
    </tr>
    <tr>
        <th>尿酸(NS)</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.NS < Model.labCheckStd.NSmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.NS)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.NS > Model.labCheckStd.NSmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.NS)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.NS)</td>
            }
        }
        <td>umol/L</td>
    </tr>
</table>